package org.ouwa.lms.client.model;

import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.Inheritance;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@Inheritance(customStrategy = "complete-table")
public class Student extends Account {
	@Persistent
	private boolean isMale;
	@Persistent
	private Date dob;
	@Persistent
	private String country;
	@Persistent
	private String highSchool;
	@Persistent
	private int toeflScore;
	
	public Student() {
		this(null, null);
	}
	
	public Student(String name, String email) {
		super(name, email);
	}
	
	public Student(Account account) {
		this(account.getName(), account.getEmailAddress());
	}
	
	public boolean isMale() {
		return isMale;
	}
	
	public void setMale(boolean isMale) {
		this.isMale = isMale;
	}
	
	public Date getDob() {
		return dob;
	}
	
	public void setDob(Date dob) {
		this.dob = dob;
	}
	
	public String getCountry() {
		return country;
	}
	
	public void setCountry(String country) {
		this.country = country;
	}
	
	public String getHighSchool() {
		return highSchool;
	}
	
	public void setHighSchool(String highSchool) {
		this.highSchool = highSchool;
	}
	
	public int getToeflScore() {
		return toeflScore;
	}
	
	public void setToeflScore(int toeflScore) {
		this.toeflScore = toeflScore;
	}
}
